package com.coocaa.app.lib.cleaner.deleter.uninstall;

import android.content.Context;

import com.coocaa.app.lib.cleaner.deleter.AbstractDeleter;
import com.coocaa.app.lib.cleaner.deleter.uninstall.impl.AutoUninstallManagerImpl;
import com.coocaa.app.lib.cleaner.mgr.Cleaner;


/**
 * Created by fc on 2017/7/7.
 */

public abstract class AutoUninstallFactory {
    public interface IAutoUninstallManager {
        void autoUninstall(int time,String pkgName);
        int getServerCommand();
        void resetCommandSuccess();
        void setOnAutoUninstallSuccessListener(Cleaner.OnAutoUninstallSuccessListener listener);
    }

    public static final AutoUninstallFactory factory = new AutoUninstallFactory() {

        @Override
        public IAutoUninstallManager create(Context context) {
            return new AutoUninstallManagerImpl(context);
        }

    };

    public abstract IAutoUninstallManager create(Context context);

}
